package com.shop.loan.model.vo;

import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.Transient;

@Erupt(name = "黑名单上传")
@Getter
@Setter
public class BlackListUploadVo extends BaseModel {

    @Transient
    @EruptField(
            views = @View(title = "内容"),
            edit = @Edit(title = "内容",
                    notNull = true,
                    desc = "多个请用,或换行分割",
                    type = EditType.TEXTAREA)
    )
    private String content;

    @EruptField(
            views = @View(title = "原因"),
            edit = @Edit(title = "原因")
    )
    private String reason;

}
